﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BlogArticlesCommentEdit.ascx.cs"
    Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.Blog.BlogArticlesCommentEdit" %>
<owc:OwDetailsView ID="BlogArticlesCommentdv" runat="server" AutoGenerateRows="False"
    DataKeyNames="BlogArticleCommentID" DataSourceID="BlogArticlesCommentOds" OwNotificationID=""
    EnableModelValidation="True">
    <Fields>
        <asp:TemplateField>
            <InsertItemTemplate>
                <fieldset>
                    <legend>
                        <owc:OwR ID="GeneralInfoOwR" runat="server" OwText="GeneralInfo"></owc:OwR>
                    </legend>
                    <div>
                        <table>
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="BlogArtileOw" runat="server" OwText="BlogArticles" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwComboBox ID="BlogArticlesCbb" runat="server" SkinID="OwComboBox" DataTextField="Title"
                                        DataValueField="BlogArticleID" DataSourceID="BlogArticlesOds">
                                    </owc:OwComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="UserOwR" runat="server" OwText="UserName" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwComboBox ID="UserNameCbb" runat="server" AppendDataBoundItems="true" SkinID="OwComboBox"
                                        OnInit="UserNameCbb_Init">
                                    </owc:OwComboBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <owc:OwR ID="OwR1" runat="server" OwText="InfoLabel"></owc:OwR>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="TitleLabelOwR" runat="server" OwText="TitleLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtTitle" runat="server" Width="680px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("Title") %>'>
                                    </owc:OwTextBox>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator1" runat="server"
                                        ErrorMessage=" <%$ OwR: TitleNotEmpty %>" ControlToValidate="txtTitle"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="ContentLabelOwR" runat="server" OwText="ContentLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwEditor ID="Detailtxt" runat="server" OwStoragePlace="Common" Style="position: relative;
                                        top: 0px; left: 0px;" Content='<%# Bind("Detail") %>' SkinID="OwEditorFull">
                                    </owc:OwEditor>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator3" runat="server"
                                        ControlToValidate="Detailtxt" ErrorMessage=" <%$ OwR: DetailNotEmpty %>"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="NameOwR" runat="server" OwText="Name" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="OwNametxt" runat="server" Width="200px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("Name") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="EmailOwR" runat="server" OwText="Email" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="Emailtxt" runat="server" Width="200px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("Email") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="WebSiteOwR" runat="server" OwText="Website" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="OwWebsitetxt" runat="server" Width="200px"
                                        OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Website") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="IPOwR" runat="server" OwText="IP" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="OwIPtxt" runat="server" Width="200px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("IP") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <br />
                <br />
                <br />
            </InsertItemTemplate>
            <EditItemTemplate>
                <fieldset>
                    <legend>
                        <asp:Localize ID="Localize2" Text="<%$ OwR:GeneralInfo %>" runat="server"></asp:Localize>
                    </legend>
                    <div>
                        <table>
                            <tr>
                                <td>
                                    <owc:OwR ID="BlogArtileOw" runat="server" OwText="BlogArticles" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwComboBox ID="BlogArticlesCbb" runat="server" SkinID="OwComboBox" DataTextField="Title"
                                        DataValueField="BlogArticleID">
                                    </owc:OwComboBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <asp:Localize ID="Localize7" Text="<%$ OwR:InfoLabel %>" runat="server"></asp:Localize>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="TitleLabelOwR" runat="server" OwText="TitleLabel" OwPrefix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtTitle" runat="server" Width="680px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("Title") %>'>
                                    </owc:OwTextBox>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator1" runat="server"
                                        ErrorMessage=" <%$ OwR: TitleNotEmpty %>" ControlToValidate="txtTitle"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="UserOwR" runat="server" OwText="UserName" OwPrefix=":"></owc:OwR>
                                </td>
                                <td>
                                    <%--<owc:OwComboBox ID="UserNameCbb" runat="server" DataTextField="Name" DataValueField="UserID"></owc:OwComboBox>--%>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="ContentLabelOwR" runat="server" OwText="ContentLabel" OwPrefix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwEditor ID="Detailtxt" runat="server" SkinID="OwEditorFull" OwStoragePlace="Common"
                                        Style="position: relative; top: 0px; left: 0px;" Content='<%# Bind("Detail") %>'>
                                    </owc:OwEditor>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator3" runat="server"
                                        ControlToValidate="Detailtxt" ErrorMessage=" <%$ OwR: DetailNotEmpty %>"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="NameOwR" runat="server" OwText="Name" OwPrefix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="OwNametxt" runat="server" Width="200px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("Name") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="EmailOwR" runat="server" OwText="Email" OwPrefix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="Emailtxt" runat="server" Width="200px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("Email") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="WebSiteOwR" runat="server" OwText="Website" OwPrefix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="OwWebsitetxt" runat="server" Width="200px"
                                        OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Website") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="IPOwR" runat="server" OwText="IP" OwPrefix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="OwIPtxt" runat="server" Width="200px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("IP") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <br />
                <br />
                <br />
            </EditItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    </owc:OwButton>
                    <owc:OwButton ID="EditUpdateThenCloseButton" runat="server" CommandName="Update"
                        Text='<%$OwR:Update %>' OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;
                    <owc:OwConfirmButton ID="EditDeleteButton" runat="server" CausesValidation="True"
                        CommandName="Delete" Text="<%$OwR:Delete %>" SkinID="OwConfirmButton">
                    </owc:OwConfirmButton>
                    &nbsp;<owc:OwButton ID="EditCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </EditItemTemplate>
            <InsertItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="InsertInsertButton" runat="server" CommandName="Insert" Text="<%$OwR:Insert %>"
                        OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;<owc:OwButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </InsertItemTemplate>
        </asp:TemplateField>
    </Fields>
</owc:OwDetailsView>
<owc:OwObjectDataSource ID="BlogArticlesCommentOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwBlogArticleCommentsEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetEntity" TypeName="Micronet.OpenWeb.Com.BLL.OwBlogArticleCommentsBLL"
    UpdateMethod="OwUpdate">
    <DeleteParameters>
        <asp:Parameter Name="blogArticleCommentID" Type="Int64" />
    </DeleteParameters>
    <SelectParameters>
        <asp:Parameter Name="owEntity" Type="Object" />
    </SelectParameters>
</owc:OwObjectDataSource>
<owc:OwObjectDataSource runat="server" ID="BlogArticlesOds" DataObjectTypeName="Micronet.OpenWeb.Entity.OwBlogArticlesEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwBlogArticlesBLL"
    UpdateMethod="OwUpdate">
    <SelectParameters>
        <asp:Parameter Name="isHomeDisplay" Type="Boolean" />
        <asp:Parameter Name="isHot" Type="Boolean" />
        <asp:Parameter Name="enableBegin" Type="DateTime" />
        <asp:Parameter Name="enableEnd" Type="DateTime" />
        <asp:Parameter Name="homeDisplayBegin" Type="DateTime" />
        <asp:Parameter Name="homeDisplayEnd" Type="DateTime" />
        <asp:Parameter Name="hotDisplayBegin" Type="DateTime" />
        <asp:Parameter Name="hotDisplayEnd" Type="DateTime" />
        <asp:Parameter Name="isDeleted" Type="Boolean" DefaultValue="False" />
        <asp:Parameter Name="allowComment" Type="Boolean" />
        <asp:Parameter Name="continentID" Type="Int64" />
        <asp:Parameter Name="countryID" Type="Int64" />
        <asp:Parameter Name="provinceID" Type="Int64" />
        <asp:Parameter Name="districtID" Type="Int64" />
        <asp:Parameter Name="wardID" Type="Int64" />
        <asp:Parameter Name="localityID" Type="Int64" />
        <asp:Parameter Name="isEnabled" Type="Boolean" />
        <asp:Parameter Name="blogID" Type="Int64" />
        <asp:Parameter Name="imageAlbumID" Type="Int64" />
        <asp:Parameter Name="videoPlaylistID" Type="Int64" />
        <asp:Parameter Name="sortClause" Type="String" />
        <asp:Parameter Name="sortDirection" Type="String" />
        <asp:Parameter Name="startRowIndex" Type="Int32" />
        <asp:Parameter Name="maximumRows" Type="Int32" />
    </SelectParameters>
</owc:OwObjectDataSource>
